// 搜索栏模块



.search_container {
    width: 100%;
    height: 82rpx;
    margin: 0 auto;

}

.search_box {
    position: fixed;
    display: flex;
    width: 100%;
    background-color: #fff;
    flex-flow: row nowrap;
    justify-content: center;


    .search_in::before {
        display: inline-block;
        vertical-align: top;
        color: #999999;
        font-weight: 700;
        font-size: 35rpx;
        content: "\e795";
        width: 50rpx;
        height: 80rpx;
        line-height: 80rpx;
        padding: 0 30rpx 0 20rpx;
    }

    .search_in {
        width: 580rpx;
        height: 80rpx;
        font-size: 35rpx;
        line-height: 80rpx;
        background-color: #f0f0f0;
        border-radius: 50rpx;

        input {
            display: inline-block;
            width: 400rpx;
            height: 80rpx;
            vertical-align: top;
            color: black;
            font-weight: 400;
            display: inline-block;
        }
    }

    .closeIcon {
        display: inline-block;
        line-height: 80rpx;
        color: #999999;
        font-size: 30rpx;
        width: 50rpx;
        height: 80rpx;
        margin-left: 20rpx;

    }

    .search_btn {
        font-size: 40prx;
        text-align: center;
        height: 80rpx;
        width: 80rpx;
        line-height: 80rpx;
        padding-left: 15rpx;

    }
}


//  搜索历史
.history_search {
    margin: 0 40rpx;


    .history_h {
        font-size: 32rpx;
        margin: 50rpx 20rpx 0;
        position: relative;

        .clearHis {
            position: absolute;
            right: -5rpx;
        }
    }

    .history_box {
        display: flex;
        flex-flow: row wrap;

        .history_item {
            height: 60rpx;
            text-align: center;
            padding: 8rpx 30rpx;
            line-height: 60rpx;
            font-size: 35rpx;
            border-radius: 8rpx;
            margin: 20rpx 15rpx 20rpx 0;
            background-color: #fafaf8;
        }
    }
}

// 热门搜索

.hots {
    margin: 0 40rpx;
    width: 600rpx;

    .hot_h {
        font-size: 32rpx;
        margin: 50rpx 20rpx 0;
    }

    .hots_box {
        display: flex;
        flex-flow: row wrap;

        .hotItem {
            height: 60rpx;
            text-align: center;
            padding: 8rpx 30rpx;
            line-height: 60rpx;
            font-size: 35rpx;
            border-radius: 8rpx;
            margin: 20rpx 15rpx 20rpx 0;
            background-color: #fafaf8;
        }
    }

}



// 标签页设置

.tabs {
    width: 100%;
    height: 100%;
    position: fixed;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;


    .tab_head.hidden {
        opacity: 0;
        height: 0;
    }

    .tab_head {
        margin-top: 20rpx;
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-around;
        border-radius: 10rpx;
        height: 80rpx;
        opacity: 1;
        transition: all 0.6s ease;

        .tab_head_item {

            font-size: 30rpx;
            text-align: center;
            line-height: 80rpx;
            width: 175rpx;
            border-radius: 10rpx;
            height: 80rpx;
            transition: all 0.3s;
        }

        .tab_head_item.active {
            color: #f97966;
            font-weight: 700;
            box-shadow: 3rpx 5rpx 4rpx rgba(0, 0, 0, 0.3);
        }
    }

    .tab_body {
        margin-top: 20rpx;
        box-sizing: border-box;
        padding: 0 35rpx;

        .scroll_box {
            width: 100%;
            height: 1200rpx;

            .tab_body_item {
                display: flex;
                flex-flow: column nowrap;
                justify-content: space-around;
                margin-bottom: 40rpx;

                .noData_tip {
                    color: #ccc;
                    width: 680rpx;
                    height: 80rpx;
                    line-height: 80rpx;
                    margin-top: 30rpx;
                    font-size: 35rpx;
                    text-align: center;
                }

                .food_item {
                    box-sizing: border-box;
                    overflow: hidden;
                    box-shadow: 0 0 10rpx rgba(0, 0, 102, 0.3);
                    border-radius: 20rpx;
                    display: flex;
                    flex-flow: row nowrap;
                    height: 235rpx;
                    justify-content: flex-start;
                    margin-bottom: 30rpx;

                    .food_img {
                        flex: 4;
                        width: 235rpx;
                        height: 235rpx;

                        image {
                            border-radius: 20rpx;
                            width: 100%;
                            height: 100%;
                        }
                    }

                    .food_info {
                        flex: 6;
                        width: 235rpx;
                        padding: 10rpx 0rpx 10rpx 25rpx;
                        text-align: left;
                        display: flex;
                        flex-flow: column nowrap;
                        justify-content: space-around;

                        .food_name {

                            font-size: 36rpx;
                            font-weight: 700;

                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                        }

                        .food_tag {

                            display: flex;
                            flex-flow: row nowrap;
                            font-size: 26rpx;
                            color: #666666;
                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;

                            .tag_item {
                                text-align: center;
                                background-color: #f5f5f5;
                                border-radius: 8rpx;
                                padding: 3rpx 10rpx;
                                margin-right: 15rpx;
                                overflow: hidden;
                                white-space: nowrap;
                                text-overflow: ellipsis;
                            }

                            .tag_item:nth-child(1) {
                                color: #bc8c3a;
                                background-color: #eae9df
                            }
                        }

                        .food_data {
                            font-size: 26rpx;


                            .grade {
                                margin-right: 30rpx;
                            }
                        }

                        .author_name {
                            font-size: 30rpx;
                            color: #ed8978;
                        }
                    }
                }

            }
        }

    }
}


.hide {
    display: none !important;
}